package cn.sugarscat.account;

/**
 * 这是一个表示用户的类，包含用户的基本信息和行为。
 * 属性：
 * - uid(int):用户Id
 * - password(String):用户密码
 * - uname(String):用户名
 * - name(String):用户真实姓名
 * - email(String):用户电子邮件地址
 * - contactInfo(String):用户联系人信息
 */
public class User {
    private int uid;
    private String uname;
    private String password;
    private String name;
    private String email;
    private String contactInfo;

    public User() {}

    public User(int uid, String uname, String name, String email, String contactInfo, String password) {
        this.uid = uid;
        this.uname = uname;
        this.name = name;
        this.email = email;
        this.contactInfo = contactInfo;
        this.password = password;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getContactInfo() {
        return contactInfo;
    }

    public void setContactInfo(String contactInfo) {
        this.contactInfo = contactInfo;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
